package com.sayi.dzapi.entities;

public class User {
    private int code=200;
    private String message="";

    private int uid;
    private String username;
    private String email;

    // 构造函数、getter 和 setter
    public User(int uid, String username, String email) {
        this.uid = uid;
        this.username = username;
        this.email = email;
    }

    public int getUid() {
        return uid;
    }

    public String getUsername() {
        return username;
    }

    public String getEmail() {
        return email;
    }

    public int getCode(){
        return code;
    }

    public User(int code,String message){
        this.code=code;
        this.message=message;
    }
    public String getMessage(){
        return message;
    }
    @Override
    public String toString() {
        return "User{" +
                "code=" + code +
                ", message='" + (message != null ? message : "(null)") + '\'' +
                ", uid=" + uid +
                ", username='" + (username != null ? username : "(null)") + '\'' +
                ", email='" + (email != null ? email : "(null)") + '\'' +
                '}';
    }

}
